{if $dataNotFound == 0}
  <br><br>
	<form action="{$smarty.server.PHP_SELF}" onsubmit="return confirm('DO You Want To Submit !!!!!')"; method=POST>
	<table align="center" border="2" cellpadding="2" cellspacing="2" width="" >
		<input type="hidden" value="{$invoiceNo}" name="invoiceNo">
	<tr>  
	  <td class="table2" align="center" colspan="2" NOWRAP>All Recived?
	    <select name="received">
	      {html_options values=$revicedArrayValue output=$revicedArrayOutput}
	    </select>
	  </td>
	  <td class="table2"  align="center" colspan="3">
	  	Unloading Invoice No:<input type="text" class="unloadInvNo" name="unloadInvNo" value="{$unloadingInvoiceNo}" READONLY >
	  </td>
	  <td class="table2" align="center" colspan="2" NOWRAP>Unloading Date:
	    {html_select_date prefix="unloading" start_year ="-0" end_year="+2" field_order="DMY" month_format="%m" day_value_format="%02d"}</td>
	  <td class="table2" align="center" colspan="4"></td>
	</tr>
	<tr>	
		<td class="table1" align="center" colspan="3">To.: {$toBranchName}</td>
		<td class="table1" align="center" colspan="3">Truck No.: {$truckNo}</td>
		<td class="table1" align="center" colspan="3">Loading Inv.dt.: {$invoiceDate|date_format:"%d/%m/%y"}</td>
		<input type="hidden" name = "loadingInvoiceId" value={$loadingInvoiceId}>
	</tr>
	<tr>
		<td class="table1"  align="center">LR No.</td>
		<td class="table1"  align="center">Consignor</td>
		<td class="table1"  align="center">Consignee</td>
		<td class="table1"  align="center">Weight</td>
		<td class="table1"  align="center">Desc</td>
		<td class="table1"  align="center">To Pay / Paid</td>
		<td class="table1"  align="center">&nbsp;</td>
		<td class="table1"  align="center">Recived</td>
		<td class="table1"  align="center">Octroi</td>
		<td class="table1"  align="center">Octroi No</td>
		<td class="table1"  align="center">Remarks</td>
	</tr>
	{section name="sec2" loop=$loadInvoiceArray}
	<tr>
		<td class="table2"  align="center">{$loadInvoiceArray[sec2].lrNo}</td>
		<td class="table2"  align="center">{$loadInvoiceArray[sec2].consignor}</td>
		<td class="table2"  align="center">{$loadInvoiceArray[sec2].consignee}</td>
		<td class="table2"  align="center">{$loadInvoiceArray[sec2].weight}</td>
		<td class="table2"  align="center">{$loadInvoiceArray[sec2].discription}</td>
		<td class="table2"  align="center">{$loadInvoiceArray[sec2].toPay}</td>
		<td class="table2"  align="center">{if $loadInvoiceArray[sec2].billType eq 'wob'}W/o{else}B{/if}</td>
		<td class="table2"  align="center"><input type="checkbox" name="unloadStatus[{$loadInvoiceArray[sec2].loadingInvoiceDetailId}]"></td>
		<td class="table2"  align="center"><input type="text" name="octroi[{$loadInvoiceArray[sec2].loadingInvoiceDetailId}]" value="0"></td>
		<td class="table2"  align="center"><input type="text" name="octroiNo[{$loadInvoiceArray[sec2].loadingInvoiceDetailId}]" value="0"></td>
		<td class="table2"  align="center"><input type="text" name="remarks[{$loadInvoiceArray[sec2].loadingInvoiceDetailId}]"></td>
	</tr>
	{/section}
	<tr>
	  <td class="table1" align="center" colspan="16"><input type="submit" name="submit" value="Submit" class="button" ></td>
	</tr>
	</table>
	</form>
{else}
  1
{/if}  	